package comment.until;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertiesUntil {
    private  static Properties pro=new Properties();
    static {
        InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream("db.properties");
        try {
            pro.load(in);
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
    public  static String getValue(String key)
    {
        return pro.getProperty(key);
    }

}
